<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>对象的创建和调用</title>
		<script type="text/javascript">
			var obj = {
				name:'coco',
				type:'阿拉斯加',
				sex: '男',
				bark : function() {
					console.log('汪汪汪汪')
				},
				jump: function() {
					console.log('跳起来');
				}
			}
			console.log(obj.name);
			console.log(obj['type']);
			console.log(obj['sex']);
			obj.bark();
			obj.jump();
		</script>
	</head>
	<body>
	</body>
</html>
